package bma.common.langutil.jmshell.cmdopt;

import java.util.Locale;

/**
 * An option that expects a boolean value
 */
public class BooleanOption extends Option<Boolean> {

	public BooleanOption(char shortForm, String longForm, String tips) {
		super(Boolean.class, shortForm, longForm, false, tips);
	}

	public BooleanOption(String shortForm, String longForm, String tips) {
		super(Boolean.class, shortForm, longForm, false, tips);
	}

	@Override
	public Boolean parseValue(String arg, Locale lcoale) {
		return Boolean.TRUE;
	}

	@Override
	public Boolean getDefaultValue() {
		return Boolean.TRUE;
	}
}